package com.supermap.application.service;

import com.supermap.application.dao.DepartmentDao;
import com.supermap.application.entity.TDepartment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DepartmentService
 * @Description 部门类
 * @Author HEKE
 * @Date 2019/3/7 10:35
 */

@Service
public class DepartmentService {

    @Autowired
    private DepartmentDao departmentDao;

    /**
     * 查询所有部门
     * @return
     */
    public List<TDepartment> findALLDepartment(){
        return this.departmentDao.findAll();
    }
}
